import { defineComponent, ref,reactive,computed } from '@vue-mini/core';

defineComponent(() => {
  const state:any = reactive({
    count: 0,
    double: computed(() => state.count * 2),
  })

  const greeting = ref('希望你会喜欢');

  const handleClick = () => {
    console.log('handleClick');
    state.count = state.count+1;
  };

  const goPage=()=>{
    wx.navigateTo({
      url: 'projects/aboutme/index'
    })
  }

  return {
    state,
    greeting,
    handleClick,
    goPage
  };
});
